<template>
  <div>
    <h1>分类管理</h1>
    <el-button type="primary" size="default" @click="handleCategoryGet">
      获取fnji分类数据
    </el-button>

    <el-button type="primary" size="default" @click="handlePost">
      获取post接口数据
    </el-button>
    
  </div>
</template>

<script setup>
import { fnjiCategoryGet, testPost } from '../../api/category';
const handleCategoryGet = ()=>{
  fnjiCategoryGet().then(res=>{
    console.log(res);
  })
}

const handlePost = ()=>{
  testPost().then(res=>{
    console.log(res);
  })
}
</script>

<style lang="scss" scoped>

</style>